<template>
  <div class="Profile" @click="ts">
    <nav-bar class="navbar">
      <div slot="center">我的</div>
    </nav-bar>

    <profile-home></profile-home>

    <section class="account">
      <div class="account-item">
        <div class="number">
          <span class="balance">0.00</span>元
        </div>
        <div class="account-info">我的余额</div>
      </div>
      <div class="account-item">
        <div class="number">
          <span class="balance">0</span>个
        </div>
        <div class="account-info">我的优惠</div>
      </div>
      <div class="account-item">
        <div class="number">
          <span class="balance">0</span>分
        </div>
        <div class="account-info">我的积分</div>
      </div>
    </section>


  </div>
</template>

<script>
import NavBar from '../../components/common/navbar/NavBar'
import ProfileHome from './childComps/ProfileHome'
export default {
  name:'Profile',
  components:{
    NavBar,
    ProfileHome
  },
  methods: {
    ts(){
      this.$toast.show('个人模块木有开发！',2000)
    }
  },
}
</script>

<style scoped>
.navbar{
  background-color:rgb(255, 129, 152) ;
  width: 100%;
  color: #fff;
  height: 45px;
}
.account {
    display: flex;
  }

  .account-item {
    width: 100%;
    background-color: #fff;
    margin-right: 1px;
    text-align: center;
  }

  .account-item:last-of-type {
    margin-right: 0;
  }

  .account-item {
    color: #666;
    font-size: 13px;
    padding: 18px;
  }

  .account-item .balance {
    font-size: 24px;
    font-weight: 700;
    color: #ff5f3e;
  }

  .account-info {
    margin-top: 6px;
  }
</style>